home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Developer CD Series 1994 November: Tool Chest
/
Dev.CD Nov 94.toast
/
Tool Chest
/
Development Tools & Languages
/
• Other Platforms
/
PCCTS
/
support
/
rexpr
/
test.c
< prev
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1994-09-14
|
412 b
|
20 lines
|
[
TEXT/MPS
]
#include <stdio.h>
#include "rexpr.h"
/*
* test for rexpr().
* To make this test:
* cc -o rexpr test.c rexpr.c
* Then from command line type:
* rexpr r string
* where r is the regular expression that decribes a language
* and string is the string to verify.
*/
main(argc,argv)
int argc;
char *argv[];
{
if ( argc!=3 ) fprintf(stderr,"rexpr: expr s\n");
else printf("%d\n", rexpr(argv[1], argv[2]));
}